package cn.ggsaas.user.pojo;

import cn.ggsaas.base.pojo.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作业系统的用户表
 * </p>
 *
 * @author ggsaas-MpGenerator
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysUser对象", description="作业系统的用户表")
public class SysUser extends BaseModel implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "头像url")
    private String faceImage;

    @ApiModelProperty(value = "公司id(t_us_company.id)")
    private Long companyId;

    @ApiModelProperty(value = "公司名称(t_us_company_info.company_name)")
    private Long companyName;

    @ApiModelProperty(value = "手机唯一的cid，用于消息的推送")
    private String cid;

    @ApiModelProperty(value = "用户状态: 0冻结, 1正常")
    private Boolean userStatus;

    @ApiModelProperty(value = "会员注册渠道，0-pc注册，1-android注册，2-ios注册，3-个人后台注册，4-个人会员导入，5-企业后台注册，6-企业前台注册，7,-企业后台导入")
    private Boolean registChannel;

    @ApiModelProperty(value = "上次登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "最后登录的ip地址")
    private String lastLoginIp;

}
